//package edu.bbu.bibliospring.backend.model;
//
//import javax.persistence.*;
//import java.util.Date;
//
///**
// * Created by anna on 6/4/14.
// */
//
//@Entity
//@Table(name = "borrowing")
//@IdClass(BaseEntity.class)
//public class Borrowing extends BaseEntity {
//
//    private static final long serialVersionUID = 1L;
//
//    //@Column(name = "book")
//    @OneToOne
//    protected Book book;
//    //@Column(name = "borrower")
//    @OneToOne
//    //@JoinColumn(name = "BORROWER_FK")
//    protected Profile borrower;
//    //@Column(name = "borrowedFrom")
//    //@JoinColumn(name = "LOCATION_FK")
//    protected Location borrowedFrom;
//    //@Column(name = "borrowedSince")
//    @Temporal(TemporalType.DATE)
//    protected Date borrowedSince;
//    //@Column(name = "borrowedUntil")
//    @Temporal(TemporalType.DATE)
//    protected Date borrowedUntil;
//
//    public Borrowing() {}
//
//    public Borrowing(Book book, Profile borrower, Location borrowedFrom, Date borrowedSince, Date borrowedUntil) {
//        this.book = book;
//        this.borrower = borrower;
//        this.borrowedFrom = borrowedFrom;
//        this.borrowedSince = borrowedSince;
//        this.borrowedUntil = borrowedUntil;
//    }
//
//    public Book getBook() {
//        return book;
//    }
//
//    public void setBook(Book book) {
//        this.book = book;
//    }
//
//    public Profile getBorrower() {
//        return borrower;
//    }
//
//    public void setBorrower(Profile borrower) {
//        this.borrower = borrower;
//    }
//
//    public Location getBorrowedFrom() {
//        return borrowedFrom;
//    }
//
//    public void setBorrowedFrom(Location borrowedFrom) {
//        this.borrowedFrom = borrowedFrom;
//    }
//
//    public Date getBorrowedSince() {
//        return borrowedSince;
//    }
//
//    public void setBorrowedSince(Date borrowedSince) {
//        this.borrowedSince = borrowedSince;
//    }
//
//    public Date getBorrowedUntil() {
//        return borrowedUntil;
//    }
//
//    public void setBorrowedUntil(Date borrowedUntil) {
//        this.borrowedUntil = borrowedUntil;
//    }
//}
